Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

commit file sinks after rewards db purged #486

Merged
merged 1 commit into from
Apr 25, 2023

Conversation

andymck
Copy link
Contributor

@andymck andymck commented Apr 24, 2023

This changes the verifiers to only output the rewards manifest files after the rewards themselves have been committed to s3 and in addition the DB has been purged, thus the manifest file will only show on disk if everything else went as expected.

This avoids the scenario whereby we write out the rewards files including manifest only to have the DB cleanup fail, resulting in the potential for the reward period to not be updated and we end up rerunning the same reward period again

@andymck andymck force-pushed the andymck/narrow-rewards-fail-gap branch from 6a9a26d to 5989ad7 Compare April 24, 2023 13:18
@andymck andymck force-pushed the andymck/narrow-rewards-fail-gap branch from 5989ad7 to e4dca48 Compare April 24, 2023 13:24
@andymck andymck marked this pull request as ready for review April 24, 2023 13:27
@bbalser bbalser merged commit e5eebee into main Apr 25, 2023
@bbalser bbalser deleted the andymck/narrow-rewards-fail-gap branch April 25, 2023 14:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants